function Bird(list){
    base(this,LSprite,[]);//此类继承Sprite
    var self=this;

    self.list = LGlobal.divideCoordinate(335,64,1,5);
    self.data = new LBitmapData(datalist['bird'],0,0,67,64);
    self.player = new LAnimation(self,self.data,self.list);
    self.addEventListener(LEvent.ENTER_FRAME,onframe);
    self.player.scaleX=-1;

    self.num=0;
    self.flag=0;

    function onframe(){
        if(self.flag>=15){
            self.num++;
            if(self.num>=20){
                self.num=0;
                self.flag=0;
            }else{
                return;
            }
        }
        if(self.num>=2){
            self.player.onframe();
            self.num=0;
            self.flag++;
        }else{
            self.num++;
        }
    }
}
